package com.cocolove2.library_cocodialog.animations.FlipEnter;

import android.animation.ObjectAnimator;
import android.view.View;

import com.cocolove2.library_cocodialog.animations.BaseAnimatorEffects;

public class FlipHorizontalSwingEnter extends BaseAnimatorEffects {
    public FlipHorizontalSwingEnter() {
        mDuration = 1000;
    }

    @Override
    public void setupAnimator(View view) {
        mAnimatorSet.playTogether(//
                ObjectAnimator.ofFloat(view, "rotationY", 90, -10, 10, 0),//
                ObjectAnimator.ofFloat(view, "alpha", 0.25f, 0.5f, 0.75f, 1));
    }
}
